luci-mod-network: wireless.js fixes
authorPaul Donald <[email protected]>
Fri, 6 Jun 2025 11:38:35 +0000 (13:38 +0200)
committerPaul Donald <[email protected]>
Fri, 6 Jun 2025 11:38:35 +0000 (13:38 +0200)
follow-up to cdce600

Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index 7be39107a66156107202433a684800a42577b704..f8f7cf17f5bca42c3fcc67c0f43b6eb967a28a0c 100644 (file)
@@ -145,8 +145,8 @@ function render_network_status(radioNet) {
        return L.itemlist(E('div'), [
                is_mesh ? _('Mesh ID') : _('SSID'), (is_mesh ? radioNet.getMeshID() : radioNet.getSSID()) ?? '?',
                _('Mode'),       mode,
-               _('BSSID'),      (!changecount && is_assoc) ? bssid : '',
-               _('Encryption'), (!changecount && is_assoc) ? radioNet.getActiveEncryption() ?? _('None') : '',
+               _('BSSID'),      (!changecount && is_assoc) ? bssid : null,
+               _('Encryption'), (!changecount && is_assoc) ? radioNet.getActiveEncryption() ?? _('None') : null,
                '',            status_text
        ], [ ' | ', E('br') ]);
 }